package com.fancymusic.service;

import com.fancymusic.entity.Music;
import com.fancymusic.entity.RecMusic;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IMusicService {

    PageInfo<Music> getAllMusic(Integer pageSize, Integer pageNum);

    List<RecMusic> getAllMusic();

    Music getMusicByMid(Integer mid);

    Music save(Music music);

    void deleteMusic(Integer id);
}
